<%--
  Created by IntelliJ IDEA.
  User: jie
  Date: 2020/8/20
  Time: 10:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>采购审核</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/toastr/toastr.min.css"/>
    <script src="${pageContext.request.contextPath}/static/js/jquery-3.4.1.min.js" type="text/javascript"
            charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/static/toastr/toastr.min.js" type="text/javascript"
            charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js" type="text/javascript"
            charset="utf-8"></script>
</head>
<body>
<h3 class="text-center">采购审核</h3>
<div class="form-inline">
    <table>
        <tr>
            <td>
                <div class="input-group">
                    <label class="input-group-addon">采购单编号</label>
                    <input id="storage" type="text" class="form-control"/>
                    <label class="input-group-addon">经办人</label>
                    <input id="staff" type="text" class="form-control"/>
                </div>
            </td>
            <td>
                <button type="button" onclick="findPage(1,pageBean.pageSize)" class="btn btn-primary btn-sm">搜索</button>
            </td>
        </tr>
    </table>
</div>
<table class="table table-bordered text-center table-responsive table-striped table-hover">
    <thead style="background: #acdef3;text-align-last: center; ">
    <tr>
        <th>采购单编号</th>
        <th>经办人</th>
        <th>创建时间</th>
        <th>总价格</th>
        <th>状态</th>
        <th>审核</th>
    </tr>
    </thead>
    <tbody id="tb"></tbody>
</table>


<div class="row" id="navBar" style="margin-left: 10px">
    显示第<span id="start"></span>到第<span id="end"></span>条，总共<span id="sum"></span>条记录，每页显示
    <div class="btn-group dropup">
        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span id="count"></span>&nbsp;&nbsp;<span
                class="caret"></span></button>
        <ul class="dropdown-menu" role="menu">
            <li><a href="javascript:findPage(1,5)">5</a></li>
            <li><a href="javascript:findPage(1,10)">10</a></li>
            <li><a href="javascript:findPage(1,50)">50</a></li>
            <li><a href="javascript:findPage(1,100)">100</a></li>
        </ul>
    </div>
    条记录
    <div class="pull-right" style="margin-right: 25px; ">
        <nav aria-label="Page navigation">
            <ul id="ctn" class="pagination"></ul>
        </nav>
    </div>
</div>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-md" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="myModalLabel2">审核采购信息</h4>
            </div>
            <div class="modal-body">

                <div class="row">
                    <div class="col-md-4">经办人：<span id="staffName"></span></div>
                    <div class="col-md-4">采购单编号：<span id="storageId"></span></div>
                    <div class="col-md-4">总金额：<span id="totPrc"></span>元</div>
                </div>
                <table class="table table-bordered table-hover table-striped">
                    <tr>
                        <td>商品名称</td>
                        <td>商品进价</td>
                        <td>商品价格</td>
                        <td>进入商品数量</td>
                    </tr>
                    <tbody id="tbDetails"></tbody>
                </table>
                    <div class="hides" style="color: #a55454">如果不通过请填写原因</div>
                    <textarea id="momo" class="hides form-control"></textarea>
            </div>
            <div class="modal-footer">
                <button type="button" id="cancel2" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" id="confirm3" class="hides btn btn-danger">不通过</button>
                <button type="button" id="confirm2" class="hides btn btn-success">通过</button>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="${pageContext.request.contextPath}/warehouse/js/auditPur.js"></script>
</body>
</html>

